/*
 * 组件注释
 * @Author: machinist_wq
 * @Date: 2022-06-27 15:24:14
 * @LastEditors: machinist_wq
 * @LastEditTime: 2023-03-22 19:47:52
 * @Description: 路由表
 * 人生无常！大肠包小肠......
 */
import { lazy } from "react";
import { Navigate, RouteObject } from "react-router-dom";
// @ts-ignore
const Bpmn = lazy(() => import("@/bpmn"));
const Components = lazy(() => import("@/pages"));
// @ts-ignore
const ReactGridLayout = lazy(() => import("@/react-grid-layout"));
const routes: RouteObject[] = [
  {
    path: "/bpmn",
    element: <Bpmn />,
  },
  {
    path: "/components",
    element: <Components />,
  },
  {
    path: "/react-grid-layout",
    element: <ReactGridLayout />,
  },
  {
    path: "/",
    element: <Navigate to="components" />,
  },
];

export default routes;
